package com.book.item.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.book.item.pojo.Role;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface RoleMapper extends BaseMapper<Role> {
    @Select("select role.id,role.type from role where role.id=#{id}")
    Role findById(Integer id);
}
